package com.hqyj.css.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hqyj.css.mapper.HqyjClassMapper;
import com.hqyj.css.pojo.HqyjClass;

@Service
public class ClassService {
	@Autowired
	HqyjClassMapper hcm;
	public List<HqyjClass> selectClass(){
		return hcm.selectByExample(null); 
	}
	public void deleteClass(Integer classCode) {
		hcm.deleteByPrimaryKey(classCode);
	}
	public void insertClass(HqyjClass hc) {
		hcm.insertSelective(hc);
	}
	public void updateClass(HqyjClass hc) {
		hcm.updateByPrimaryKeySelective(hc);
	}
}
